package xyz.renyumeng.xkm.model.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.renyumeng.xkm.model.base.BaseEntity;

/**
 * @author renyumeng
 * @date Created in 9:13 2023/7/2
 */
@Data
@ApiModel("用户地址信息")
@TableName("user_address")
@EqualsAndHashCode(callSuper = true)
public class UserAddressInfo extends BaseEntity {
    @ApiModelProperty("地址")
    @TableField("`address`")
    private String address;

    @ApiModelProperty("父id")
    @TableField("`parent_id`")
    private Long parentId;

    @ApiModelProperty("是否存在子节点")
    @TableField(exist = false)
    private boolean hasChildren;

}
